<!DOCTYPE html>
<!--解决idea thymeleaf 表达式模板报红波浪线-->
<!--suppress ALL -->
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 引入公用部分 -->
    <script th:replace="head::static"></script>
    <!-- 样式 -->
    <link th:href="@{/css/seller/seller.css}" rel="stylesheet" type="text/css"/>
</head>
<body>

	<form id="refForm" class="layui-form layui-form-pane">
  
		<div class="layui-form-item">
			<div class="layui-inline">
                <label class="layui-form-label">商户</label>
                <div class="layui-input-block">
                <input type="text" name="sellerName" readonly="readonly"
                		autocomplete="off" placeholder="商户"
                		th:value="${seller.sellerName}"
                       	class="layui-input">
            	</div>
            </div>
		</div>
        <div class="layui-form-item">
			<div class="layui-inline">
                <label class="layui-form-label">代理商</label>
                <div class="layui-input-block">
                <input type="text" name="agentName" readonly="readonly"
                		autocomplete="off" placeholder="代理商"
                		th:value="${seller.agentName}"
                       	class="layui-input">
            	</div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label required">签约点数</label>
                <div class="layui-input-block">
                <input type="text" name="serverAmountPoint" lay-verify="required|number"
                		autocomplete="off" placeholder="签约点数"
                		th:value="${seller.serverAmountPoint}"
                       	class="layui-input">%
            	</div>
            </div>
        </div>
        
                <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label required">服务费计算方式</label>
            </div>
        </div>
        
        <div class="layui-form-item">
            <div class="layui-inline" align="center">
                <div class="layui-input-block"> 
                <input type="radio" name="serviceFormula" value="1" title="方案一(发放金额*费率)" checked="">
      			<input type="radio" name="serviceFormula" value="2" title="方案二(充值金额*费率)" th:field="${seller.serviceFormula}">
    			</div>
            </div>
        </div>
        
        <!-- 隐藏域 -->
        <input type="text" name="relationId" th:value="${seller.relationId}" hidden="hidden"/>
        <input type="text" name="agentId" th:value="${seller.agentId}" hidden="hidden"/>
        <input type="text" name="sellerId" th:value="${seller.sellerId}" hidden="hidden"/>
	</form>
	<div class="layui-form-item">
        <div class="layui-input-block">
        	<a class="layui-btn" onclick="refFormSave()">保存修改</a>
	    </div>
	</div>

</body>
<!-- js -->
<script th:src="@{/js/seller/ref/refupdate.js}"></script>
</html>